package mianxiangduixiang.Week8.Exam5;

import mianxiangduixiang.Week8.Exam1.Circle;
import mianxiangduixiang.Week8.Exam1.Point;
import mianxiangduixiang.Week8.Exam1.Rectangle;

/**
 * @Author JetZhang
 * @Date 2021/11/2
 */
public class Test {
    public static void main(String[] args) {
        Point point = new Circle(3, 5, 5.00);
        Point point1 = new Rectangle(3, 5, 5, 5);
        System.out.println(point.toString());
        System.out.println(point1.toString());
        System.out.println("圆面积" + new Circle(5.00).getArea());
        System.out.println("长方形面积" + new Rectangle(5, 5).getArea());
    }
}
